<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
Route::get('blog/query','index/Blog/query');
Route::get('goods/query','index/Goods/query');
Route::get('goods/queryGoodsCategory','index/Goods/queryGoodsCategory');
Route::get('goods/fQueryGoodsAndfirstSku','index/Goods/fQueryGoodsAndfirstSku');
Route::get('goods/fQueryGoodsAndfirstSkuByid','index/Goods/fQueryGoodsAndfirstSkuByid');
Route::post('goods/save','index/Goods/save');
Route::get('goods/del','index/Goods/delete');
Route::get('goods/queryByid','index/Goods/queryByid');
Route::get('goods/queryBysid','index/Goods/queryBysid');
Route::get('category/query','index/Category/query');
Route::get('category/getByPid','index/Category/getByPid');
Route::post('category/save','index/Category/save');
Route::post('category/update','index/Category/update');
Route::get('category/del','index/Category/delete');
Route::get('cart/query','index/Cart/query');
Route::post('cart/add','index/Cart/add');
Route::post('cart/updateSelected','index/Cart/updateSelected');
Route::get('goodsOrder/query','index/goodsOrder/query');
Route::get('user/query','index/User/query');
Route::get('user/queryAll','index/User/queryAll');
Route::get('user/select','index/User/select');
Route::get('user/del','index/User/delete');
Route::post('login','index/User/login');
Route::post('user/save','index/User/save');
Route::post('user/update','index/User/update');
Route::get('roles/queryAll','index/Roles/queryAll');
Route::post('roles/save','index/Roles/save');
Route::post('roles/update','index/Roles/update');
Route::get('roles/del','index/Roles/delete');
Route::get('permission/del','index/Permission/delete');
Route::post('permission/save','index/Permission/save');
Route::post('permission/update','index/Permission/update');
Route::get('permission/queryAll','index/Permission/queryAll');
Route::get('userRole/select','index/UserRole/select');
Route::post('userRole/addAndDel','index/UserRole/addAndDel');
Route::get('rolePermission/select','index/RolePermission/select');
Route::post('rolePermission/addAndDel','index/RolePermission/addAndDel');
Route::get('lbt/queryAll','index/Lbt/queryAll');
Route::post('lbt/add','index/Lbt/add');
Route::get('lbt/delete','index/Lbt/delete');
Route::post('lbt/update','index/Lbt/update');
Route::get('address/queryAll','index/Address/queryAll');
Route::get('address/queryDefaultAddress','index/Address/queryDefaultAddress');
Route::get('address/queryById','index/Address/queryById');
Route::post('address/add','index/Address/add');
Route::get('address/del','index/Address/delete');
Route::post('order/add','index/Order/add');
Route::get('order/query','index/Order/query');
return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

];
